package com.feng.service.impl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feng.mapper.UsersMapper;
import com.feng.model.Users;
import com.feng.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	private static Log log = LogFactory.getLog(UserServiceImpl.class);
	@Autowired
	private UsersMapper userMapper;

	public Users findUserByCode(String usercode) throws Exception {
		// TODO Auto-generated method stub
		log.debug("调用数据库"+usercode);
		return userMapper.findUserByCode(usercode);
	}

	public List<Users> findUsers(Users user) throws Exception {
		// TODO Auto-generated method stub
		log.debug("调用数据库"+user);
		return userMapper.findUsers(user);
	}

	public void saveUser(Users user) throws Exception {
		// TODO Auto-generated method stub

	}

	public void updateUser(Users user) throws Exception {
		// TODO Auto-generated method stub

	}

	public void delUser(Users user) throws Exception {
		// TODO Auto-generated method stub

	}

}
